<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StimulusReporting.aspx.cs" Inherits="PHSRAG.Insight21.Agreements.StimulusReporting" %>
<%@ Register Assembly="PHSRAG.WebControls" Namespace="PHSRAG.WebControls" TagPrefix="cc2" %>
<%@ Register Assembly="PHSRAG.Insight21.InsightWebControls" Namespace="PHSRAG.Insight21.InsightWebControls" TagPrefix="cc1" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Stimulus Funding</title>
    <link href="../Insight21.css" rel="stylesheet" type="text/css" />  
    <script type="text/javascript">                  
    function confirmreport()
    {
        if (confirm("You cannot change the data after the reports are generated. Are you sure you want to continue?")==true)
            return true;
        else
            return false;
    }
    
    function ShowHideSearch()
    {
        var pnlSearch =document.getElementById("Panel1");
        if(pnlSearch.style.display == 'none')
        {
            pnlSearch.style.display = 'block';
            var image = document.getElementById('imgSearch');
            image.src = "../Images/arrow_dn.gif";
        }
        else
        {
            pnlSearch.style.display = 'none';
            var image = document.getElementById('imgSearch');
            image.src = "../Images/arrow_rt.gif";
        }
        return false;
    }
    
    </script>
    <style type="text/css">
        .style1
        {
            width: 246px;
        }
        .style2
        {
            height: 31px;
            width: 246px;
        }
        .style3
        {
            width: 169px;
        }
        .style4
        {
            width: 200px;
        }
        .style5
        {
            width: 154px;
        }
        .style6
        {
            width: 365px;
        }
        .style7
        {
            height: 36px;
            width: 246px;
        }
        .style8
        {
            width: 246px;
            height: 18px;
        }
        .style9
        {
            width: 169px;
            height: 21px;
        }
        .style10
        {
            width: 200px;
            height: 21px;
        }
        .style11
        {
            width: 154px;
            height: 21px;
        }
        .style12
        {
            width: 365px;
            height: 21px;
        }
        .style13
        {
            width: 246px;
            height: 21px;
        }
    </style>
</head>
<body>
    <form id="StimulusFundingForm" runat="server" > <!-- onsubmit="return AddListItemsToHiddenControl();">-->
        <table cellpadding="0" class="Container" style="width: 98%">
			<tr>
				<td>
                   <table class="Header">
						<tr>
							<td>
								<cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc1:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server" EnableOverviewNavigation="True"
									OnNavigate="OnSubNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate" />
							</td>
						</tr>
					</table>
				    <table border="0" cellpadding="5" cellspacing="5" width="100%" style="border-right: silver 0px solid; border-top: silver 0px solid; border-left: silver 0px solid; border-bottom: silver 0px solid">
				        <tr>
				            <td style="text-align: left">
				                 <table class="Search" border="1" cellspacing="0" rules="none" style="width: 900px; border-right: lightgrey 1px solid; border-top: lightgrey 1px solid; border-left: lightgrey 1px solid; border-bottom: lightgrey 1px solid;">
				                    <tr>
				                        <td align="right" class="style3">
                                                             <asp:Label ID="Label3" runat="server" Text="PS Fund # :" />
                                                             &nbsp;</td>
				                        <td class="style4">
                                                             <asp:TextBox ID="txtPSFundNo" runat="server" CssClass="DataInput" />
                                                         </td>
				                        <td align="right" class="style5">
                                                             <asp:Label ID="lblSupervisorFirstName" runat="server" 
                                                                 Text="Sponsor Award # :" />
                                                             &nbsp;</td>
				                        <td class="style6">
                                                             <asp:TextBox ID="txtSponsorAwardNo" runat="server" CssClass="DataInput" />
                                                         </td>	
				                        <td valign="top" class="style7"><asp:ImageButton ID="ImageButton1" runat="server"
                                                 ImageUrl="~/Images/icon_org.gif" /></td>			                        
				                    </tr>
				                    <tr>
				                        <td align="right" class="style9"></td>
				                        <td class="style10"></td>
				                        <td align="right" class="style11"></td>
				                        <td class="style12"></td>	
				                        <td valign="top" class="style13">
                                             <asp:ImageButton ID="imgBtnSearchReport" runat="server" CommandName="SearchReport"
                                                 ImageUrl="~/Images/b_search_ongrey.gif" OnClick="imgBtnSearchReport_Click" />
                                             <asp:ImageButton ID="imgBtnClear" runat="server" CommandName="SearchReport"
                                                 ImageUrl="~/Images/b_clearselect.gif" OnClick="imgBtnClear_Click" /></td>			                        
				                    </tr>   
				                    <tr>
				                        <td colspan="5" valign="top" class="style8">
                                             &nbsp;
                                             <asp:Image ID="imgSearch" runat="server" ImageUrl="~/Images/arrow_dn.gif" />
&nbsp;<asp:LinkButton ID="btnAdvSearch" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small" 
                                                 ForeColor="#A6531C" onclick="btnAdvSearch_Click">Advanced Search Options</asp:LinkButton>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                             <asp:Label ID="Label7" runat="server" Font-Italic="True" Font-Names="Arial" 
                                                 Font-Size="X-Small" ForeColor="#2B3D6A" 
                                                 Text="To perform a wildcard search, substitute the % sign for words or characters within your search criteria." 
                                                 Width="606px"></asp:Label>
                                        </td>			                        
				                    </tr>                 				                   
				                    <tr>
				                        <td colspan="5" valign="top" class="style1">
                                             <asp:Panel ID="Panel1" runat="server" style="margin-top: 5px">
                                                 <table class="Search" border="0" cellspacing="0" rules="none"  style="width: 900px; border-right: lightgrey 1px solid; border-top: lightgrey 1px solid; border-left: lightgrey 1px solid; border-bottom: lightgrey 1px solid;">
                                                     <tr>
                                                         <td align="right" style="width: 169px; height: 27px;">
                                                             <asp:Label ID="lblUserLastName" runat="server" Text="PI Last Name : " />
                                                             &nbsp;</td>
                                                         <td style="width: 200px; height: 27px;">
                                                             <asp:TextBox ID="txtPILastName" runat="server" CssClass="DataInput" />
                                                         </td>
                                                         <td align="right" style="width: 154px; height: 27px;">
                                                             <asp:Label ID="lblUserFirstName" runat="server" Text="PI First Name :" />
                                                             &nbsp;</td>
                                                         <td style="width: 365px; height: 27px;">
                                                             <asp:TextBox ID="txtPIFirstName" runat="server" CssClass="DataInput" />
                                                         </td>
                                                         <td valign="top" class="style1">
                                                             &nbsp;</td>
                                                     </tr>
                                                     <tr>
                                                         <td align="right" style="width: 169px; height: 27px;">
                                                             <asp:Label ID="lblSupervisorLastName" runat="server" Text="Sponsor :" />
                                                             &nbsp;</td>
                                                         <td style="width: 200px; height: 27px;">
                                                             <asp:TextBox ID="txtSponsor" runat="server" CssClass="DataInput" />
                                                         </td>
                                                         <td align="right" style="width: 154px; height: 27px;">
                                                             <asp:Label ID="Label4" runat="server" Text="Document ID : " />
                                                             &nbsp;</td>
                                                         <td style="width: 365px; height: 27px;">
                                                             <asp:TextBox ID="txtDocumentID" runat="server" CssClass="DataInput" />
                                                         </td>
                                                         <td class="style1" valign="top">
                                                             &nbsp;</td>
                                                     </tr>
                                                     <tr>
                                                         <td align="right" style="width: 169px; height: 27px;">
                                                             <asp:Label ID="Label1" runat="server" Text="Proposal # :" />
                                                             &nbsp;</td>
                                                         <td style="width: 200px; height: 27px;">
                                                             <asp:TextBox ID="txtProposalNo" runat="server" CssClass="DataInput" />
                                                         </td>
                                                         <td align="right" style="width: 154px; height: 27px;">
                                                             <asp:Label ID="Label2" runat="server" Text="Reporting Period :" />
                                                             &nbsp;</td>
                                                         <td style="width: 365px; height: 27px;">
                                                             <asp:DropDownList ID="drpReportPeriod" runat="server" CssClass="DataInput"
                                                 Width="131px">
                                                             </asp:DropDownList>
                                                         </td>
                                                         <td class="style1" valign="top">
                                                             &nbsp;</td>
                                                     </tr>
                                                     <tr>
                                                         <td align="right" style="width: 169px; height: 31px;">
                                                             <asp:Label ID="Label5" runat="server" Text="DA Last Name :" />
                                                             &nbsp;</td>
                                                         <td style="width: 200px; height: 31px;">
                                                             <asp:TextBox ID="txtDALastName" runat="server" CssClass="DataInput" />
                                                         </td>
                                                         <td align="right" style="width: 154px; height: 31px;">
                                                             <asp:Label ID="Label6" runat="server" Text="DA First Name :" />
                                                             &nbsp;</td>
                                                         <td style="width: 365px; height: 31px;">
                                                             <asp:TextBox ID="txtDAFirstName" runat="server" CssClass="DataInput" />
                                                         </td>
                                                         <td class="style2">
                                                             &nbsp;
                                                         </td>
                                                     </tr>
                                                 </table>
                                             </asp:Panel>
                                        </td>			                        
				                    </tr>                 				                   
                                </table>	
				            </td>
				        </tr>				        
				    </table>	
				    <table id="dynamicTable" class="Invisible" cellspacing="10">
						<tr>
							<td>
								<cc2:ActivityIndicator ID="activityIndicator" runat="server" ContainerID="dynamicTable" />
							</td>
						</tr>
						<tr>
							<td>
								<cc2:Annunciator ID="annunciator" runat="server" ContainerID="dynamicTable" />
							</td>
						</tr>
					</table>
				    <table class="PlaceBar">
						<tr>
							<td align="left" class="PageName">
                                <asp:Label ID="pageName" runat="server"></asp:Label></td>
							<td align="center">
								&nbsp;</td>
							<td align="right" colspan="2">
                                <cc1:InsightDownloadBar ID="downloadBar" runat="server" OnDownloadToExcel="OnDownloadToExcel"
                                    OnDownloadToPDF="OnDownloadToPDF" OnFailedAction="OnDownloadFailed" SQLReportName="Stimulus_Reporting"
                                    useRootHost="true" />
                            </td>
						</tr>
					</table>
					<table width="100%" cellspacing="0">
						<tr>
							<td>
								<cc2:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
									OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
							</td>
						</tr>
						<tr>
							<td>
								<asp:DataGrid ID="dgProposal" runat="server" AllowCustomPaging="True" AllowPaging="True"
									AllowSorting="True" CssClass="DataGrid"
									Width="100%" PageSize="20" OnSortCommand="dgProposal_SortCommand" 
                                    onitemdatabound="dgProposal_ItemDataBound">
									<AlternatingItemStyle CssClass="DataGridAlternatingItem" />
									<ItemStyle CssClass="DataGridItem" VerticalAlign="Top" Width="130px" Wrap="True" />
									<HeaderStyle CssClass="DataGridHeader" BackColor="#FFFFC0" />
									<PagerStyle Visible="False" />
								</asp:DataGrid>
                                </td>
						</tr>
						<tr>
							<td style="height: 16px">
								<cc2:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
									OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
							</td>
						</tr>
					
						<tr>
							<td align="right">
								<asp:ImageButton ID="imgBtnReport" runat="server" CommandName="GenerateReport"
                                                 ImageUrl="~/Images/b_finalizeComplete.gif" OnClick="imgBtnReport_Click" Visible="False" />
							</td>
						</tr>					
					                            
				</td>
            </tr>
        </table>                            				
    </form>
</body>
</html>
